{*
%%%copyright%%%
 * phpMyTicket - ticket reservation system
 * Copyright (C) 2004-2005 Anna Putrino, Stanislav Chachkov. All rights reserved.
 *
 * This file is part of phpMyTicket.
 *
 * This file may be distributed and/or modified under the terms of the
 * "GNU General Public License" version 2 as published by the Free
 * Software Foundation and appearing in the file LICENSE included in
 * the packaging of this file.
 *
 * Licencees holding a valid "phpmyticket professional licence" version 1
 * may use this file in accordance with the "phpmyticket professional licence"
 * version 1 Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * The "phpmyticket professional licence" version 1 is available at
 * http://www.phpmyticket.com/ and in the file
 * PROFESSIONAL_LICENCE included in the packaging of this file.
 * For pricing of this licence please contact us via e-mail to 
 * info@phpmyticket.com.
 * Further contact information is available at http://www.phpmyticket.com/
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Contact info@phpmyticket.com if any conditions of this licencing isn't 
 * clear to you.
 
 *}
<table width="200px" border="0" cellspacing="0" cellpadding="0" class="cart_table">
<tr>
		<td align='center' class="cart_title">
			{if $cart->is_empty_f() }
				<img src="images/caddie.gif">
			{else} 
				<a class="cart_link" href='index.php?action=view_cart'>
				<img src="images/caddie_full.png" border='0'>
			{/if}
    			Shopping Cart</a>		</td>
	</tr>
	<tr>
		{if $cart->is_empty_f() }
			<td valign="top" class='cart_content' align="center">
			You have no tickets reserved.			</td>
		{else}
			{assign var="cart_overview" value=$cart->overview_f() }
			<td valign="top" class='cart_content' align='left' >
				<table>
					<tr>
						<td class="cart_content">
							{if $cart_overview.valid }
							<img src='images/ticket-valid.png'> {#valid_tickets#} {$cart_overview.valid}<br><br>
							{/if}
        					{if $cart_overview.expired}
          					<img src='images/ticket-expired.png'> {#expired_tickets#} {$cart_overview.expired}<br><br>
							{/if}
							{if $cart_overview.valid }
							<img src='images/clock.gif'> Tickets expire in {$cart_overview.minttl} min's
							{/if}						</td>
					</tr>
				</table>			</td>
		</tr>
		<tr>
			<td class='cart_content'>
				{cart->items}
				<table>
					{if not $seat_item->is_expired()}
					<tr>
						<td class='cart_content' style='border-bottom:#cccccc 1px solid;padding-bottom:4px;padding-top:4px; font-size:10px;'>
							{$event_item->event_name}<br>
							{$category_item->cat_name}<br>
							{$seat_item->count()} x &pound;{$category_item->cat_price}						</td>
						<td  width="45%" valign='top' class='cart_content' style='border-bottom:#cccccc 1px solid;padding-bottom:4px;padding-top:4px; font-size:10px;'>
							<b>&pound;{$seat_item->total_price($category_item->cat_price)|string_format:"%.2f"}</b>{*$organizer_currency (commented out)*}
							<br>
							<img src='images/clock.gif' valign='middle' align='middle'> {$seat_item->ttl()} min.						</td>
					</tr>
					{/if}    
				{/cart->items}
				{if $cart_overview.valid }
					<tr>
						<td align='center' class='cart_content' colspan='2'>
						<br>
						<a href='index.php?action=view_cart'>View Order</a>
						<br>
						<br>
						Total price &pound;{cart->total_price|string_format:"%.2f"} {*$organizer_currency (commentted out)*}						</td>
					</tr>
					<tr>
						<td align='center' class='cart_content' colspan='2'>
							<form action="kasse.php">
							<input type="submit" name="go_pay" value="{#checkout#}">
							</form>
       					</td>
					</tr>
				{/if}
			</table>
		{/if}
	</td>
</tr>
</table>
{$login_msg}

